package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class PWDemo {
    public static void main(String[] args)throws IOException {
        PrintWriter pw=new PrintWriter("book.txt");
        pw.write("happy");
        pw.close();


//        FileOutputStream fos=new FileOutputStream("book.txt");
//        OutputStreamWriter osw=new OutputStreamWriter(fos, StandardCharsets.UTF_8);
//        BufferedWriter bw= new BufferedWriter(osw);
//        bw.write("生日快乐!");
//        System.out.println("over");
//        bw.close();
    }
}
